@layout("/common/_container.html"){
<link href="${ctxPath}/static/css/font-awesome.css?v=4.4.0" rel="stylesheet">
<link href="${ctxPath}/static/css/animate.css" rel="stylesheet">
<link href="${ctxPath}/static/css/plugins/summernote/summernote.css" rel="stylesheet">
<link href="${ctxPath}/static/css/plugins/summernote/summernote-bs3.css" rel="stylesheet">
<link href="${ctxPath}/static/css/plugins/steps/jquery.steps.css" rel="stylesheet">
<link href="${ctxPath}/static/css/wz/img_up.css" rel="stylesheet">
<div class="ibox float-e-margins">
    <div class="ibox-content">
        <div class="form-horizontal">
            <input type="hidden" id="advId" value="${item.advId}">
            <div class="row">
                <div class="col-sm-12">
                    <div class="ibox-content">
                        <form id="form" action="${ctxPath}/wzAdv/update" class="wizard-big" enctype="multipart/form-data"
                              method="post">
                            <h1>基本资料</h1>
                            <fieldset>
                                <div class="row">
                                    <div class="col-sm-6">
                                        <label>类型</label>
                                        <select id="subtype" name="subtype" class="form-control required">
                                            <option value="1" ${item.subtype==1?'selected':''}>广告</option>
                                            <option value="2" ${item.subtype==2?'selected':''}>新闻</option>
                                        </select>
                                    </div>

                                    <div class="col-sm-6">
                                        <label>广告类型</label>
                                        <select id="type" name="type" class="form-control required">
                                            <option value="1" ${item.type==1?'selected':''}>非即时广告</option>
                                            <option value="2" ${item.type==2?'selected':''}>即时广告</option>
                                        </select>
                                    </div>
                                    <div class="col-sm-6">
                                        <label>广告标题 *</label>
                                        <input id="title" name="title" type="text" class="form-control required" value='${item.title}'
                                               maxlength="15">
                                    </div>
                                </div>
                                <div>
                                    <div class="col-sm-3">
                                        <#button name="重置" icon="fa-search" clickFun="WzUser.search()"/>
                                    </div>
                                    <input type="hidden" id="userCode" value='${item.userCode}'>
                                    <#table id="WzUserTable"/>
                                </div>
                            </fieldset>

                            <h1>封面图片</h1>
                            <fieldset>
                                <div class="row">
                                    <div class="col-sm-6 b-r">
                                    <img src="${coverUrl}"  height="500" width="500" style="margin:-8px auto;"/>
                                    </div>
                                    <div class="col-sm-6">
                                        <div>
                                            <#table id="WzPicFileTable"/>
                                        </div>
                                    </div>
                                </div>
                            </fieldset>

                            <h1>广告详情</h1>
                            <fieldset>
                                <label>至广告编辑处修改</label>
                                <textarea id='details' style="width: 100%;height: 90%">${details}
                                </textarea>
                            </fieldset>
                            <h1>优惠券</h1>
                            <fieldset>
                                <div class="row">
                                    <div class="col-sm-3">
                                        <#button name="重置" icon="fa-search" clickFun="WzCoupon.search()"/>
                                    </div>
                                </div>
                                <div>
                                    <input type="hidden" id="couponIds" value='${item.couponIds}'>
                                    <#table id="WzCouponTable"/>
                                </div>
                            </fieldset>

                            <h1>具体细节</h1>
                            <fieldset>
                                <div class="row">
                                    <div class="col-sm-6">
                                            <!--<#input id="beginTime" name="开始时间"
                                                   value="${beginTime}" clickFun="laydate({istime: true, format: 'YYYY-MM-DD hh:mm:ss'})"/>
                                            <#input id="endTime" name="结束时间"
                                                   value="${endTime}" clickFun="laydate({istime: true, format: 'YYYY-MM-DD hh:mm:ss'})"/>-->
                                            <!--<#select id="screenGender" name="筛选性别">-->
                                                <!--<option value="0" ${item.screenGender==0?'selected':''}>默认</option>-->
                                                <!--<option value="1" ${item.screenGender==1?'selected':''}>男</option>-->
                                                <!--<option value="2" ${item.screenGender==2?'selected':''}>女</option>-->
                                            <!--</#select>-->
                                            <!--<#input id="screenMinAge" value="${item.screenMinAge}" name="筛选最小年龄"/>-->
                                            <!--<#input id="screenMaxAge" value="${item.screenMaxAge}" name="筛选最大年龄"/>-->
                                            <!--<#input id="screenCity"   value="${item.screenCity}" name="筛选所在城市"/>-->
                                            <!--<#input id="screenRange" value="${item.screenRange}" name="筛选范围"/>-->
                                    </div>
                                </div>
                            </fieldset>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<!-- SUMMERNOTE -->
<script src="${ctxPath}/static/js/plugins/summernote/summernote.min.js"></script>
<script src="${ctxPath}/static/js/plugins/summernote/summernote-zh-CN.js"></script>
<script src="${ctxPath}/static/js/wz/img_up.js"></script>
<script src="${ctxPath}/static/js/plugins/suggest/bootstrap-suggest.min.js"></script>
<script src="${ctxPath}/static/modular/wz/wzAdv/wzAdv_info.js"></script>
<script src="${ctxPath}/static/modular/wz/wzAdv/wzAdv_edit.js"></script>
<!-- Steps -->
<script src="${ctxPath}/static/js/plugins/staps/jquery.steps.min.js"></script>
<!-- Jquery Validate -->
<script src="${ctxPath}/static/js/plugins/validate/jquery.validate.min.js"></script>
<script src="${ctxPath}/static/js/plugins/validate/messages_zh.min.js"></script>
<script src="${ctxPath}/static/modular/wz/wzAdv/wzAdv_search.js"></script>
@}
